package com.codedancer.campus.client.api.user.ro;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import lombok.Data;

@Data
@ApiModel("用户注册Ro")
public class UserRegisterRo {

    @ApiModelProperty("登录名称")
    @Size(min = 6, max = 10, message = "登录名称在6-10位之间")
    private String loginName;

    @ApiModelProperty("登录密码")
    @Size(min = 6, max = 16, message = "密码在6-16位之间")
    private String password;

    @ApiModelProperty("确认密码")
    @Size(min = 6, max = 16, message = "确认密码在6-16位之间")
    private String rePassword;

    @ApiModelProperty("验证码Key")
    @NotEmpty(message = "验证码key为空")
    private String captchaKey;

    @ApiModelProperty("验证码")
    @NotEmpty(message = "验证码为空")
    private String captchaCode;

    @ApiModelProperty("学校uuid")
    @NotEmpty(message = "请选择学校")
    private String schoolUuid;

}
